import { request } from '../service'

export function deptPage (data) {
  return request({
    url: '/seres-user/api/dept/page',
    method: 'post',
    params: data
  })
}
export function deptCreate (data) {
  return request({
    url: '/seres-user/api/dept/create',
    method: 'post',
    params: data
  })
}
export function deptUpdate (data) {
  return request({
    url: '/seres-user/api/dept/update',
    method: 'post',
    params: data
  })
}
export function getUserDept () {
  return request({
    url: '/seres-user/api/dept/getUserDept',
    method: 'get'
  })
}

export function deleteDept (data) {
  return request({
    url: '/seres-user/api/dept/deleteDept',
    method: 'post',
    params: data
  })
}
